package com.ykj.utils;

import com.ykj.entity.User;

import java.util.HashMap;
import java.util.Map;

/**
 * 个人使用类转换器
 * @author Y2014188432
 */
public class ChangeBeanUtils {

    public static Map<String,String> UserToMap(User user){
        Map<String,String> map = new HashMap<>();

        map.put("power",user.getPower());
        map.put("id",String.valueOf(user.getId()));
        map.put("name",user.getName());
        map.put("phone",user.getPhone());
        map.put("ico",user.getIco());

        return map;
    }
}
